import requests
from lxml import etree

url='https://www.17k.com/list/3156970.html'
headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
}
response=requests.get(url,headers=headers)
response.encoding=response.apparent_encoding
html=response.text
parse=etree.HTML(html)
hrefs=parse.xpath('//dl[@class="Volume"]//a[position()<33]/@href')
href_list=[]
for i in hrefs:
    href='https://www.17k.com'+i
    href_list.append(href)
text_list = []
title_list = []
for j in href_list[1:]:
    response1=requests.get(j,headers=headers)
    response1.encoding=response.apparent_encoding
    data=response1.text
    parse=etree.HTML(data)
    title=parse.xpath('//div[@class="readAreaBox content"]/h1/text()')
    texts=parse.xpath('//div[@class="p"]/p/text()')
    text_list.append(texts)
    title_list.append(title)
for z in zip(title_list,text_list):
    print(z)